# -*- coding:utf-8 -*-
# @Time: 2020/9/25 20:35
# @Author: 周铖鑫
# @Description：爬取京东页面的信息
# @File: JD.py
import requests

url="https://npcitem.jd.hk/100016052204.html"
try :
    r=requests.get(url)
    r.raise_for_status()
    r.encoding=r.apparent_encoding
    print(r.text[:100])
except :
    print("爬取失败")